<template>
	<view>
		首页
		<text class="iconfont iconvideocamera"></text>
		<uni-badge text="1"></uni-badge>
		<uni-badge text="2" type="success"></uni-badge>
		<uni-badge text="3" type="primary"></uni-badge>
		<view>
			<uni-card>123</uni-card>
		</view>

	</view>
</template>

<script>
	import {uniBadge} from '@dcloudio/uni-ui/lib/uni-badge/uni-badge.vue'
	import {uniCard} from '@dcloudio/uni-ui/lib/uni-card/uni-card.vue'

	export default {
		data() {
			return {

			}
		},
		onLoad() {

		},
		methods: {

		},
		components: {
			uniBadg: uniBadge,
			uniCard: uniCard
		},
		onLoad() {
			// http://157.122.54.189:9088/image/v3/homepage/vertical

			// 1、原生的微信小程序api
			wx.request({
				url: 'http://157.122.54.189:9088/image/v3/homepage/vertical',
				success(res) {
					console.log(res);
				}
			})

			// 2、 换成 uni-api
			uni.request({
				url:'http://157.122.54.189:9088/image/v3/homepage/vertical'
			}).then(res => {
				console.log(res)
			})
		}
	}
</script>

<style lang="scss">

</style>
